﻿<s:TagVisualization x:Class="CitiSurface.IdTagVisualization"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" 
    xmlns:CitiSurface="clr-namespace:CitiSurface"
    Loaded="IdTagVisualization_Loaded">
    <s:TagVisualization.Resources>
        <ImageBrush x:Key="ButtonGlowImage" ImageSource="Resources\GlowImage.png" Stretch="UniformToFill" />
        <TransformGroup x:Key="TransformGroupTransform">
            <ScaleTransform ScaleX="0"
							ScaleY="0" />
            <SkewTransform AngleX="0"
						   AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="0"
								Y="0" />
        </TransformGroup>
        <TransformGroup x:Key="TransformGroupTransform2">
            <ScaleTransform ScaleX="0"
							ScaleY="0" />
            <SkewTransform AngleX="0"
						   AngleY="0" />
            <RotateTransform Angle="0" />
            <TranslateTransform X="-70"
								Y="-120" />
        </TransformGroup>
        <RadialGradientBrush x:Key="HighlightBrush" Center="1.384,-0.285" GradientOrigin="1.386,-0.628" RadiusX="0.86500000000000021" RadiusY="0.752">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterX="1.384" CenterY="-0.285" ScaleX="0.751" ScaleY="0.751"/>
                    <SkewTransform AngleX="0" AngleY="0" CenterX="1.384" CenterY="-0.285"/>
                    <RotateTransform Angle="0" CenterX="1.384" CenterY="-0.285"/>
                    <TranslateTransform X="-0.904" Y="0.285"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="#4CFFFFFF" Offset="0.684"/>
            <GradientStop Color="#00FFFFFF" Offset="1"/>
            <GradientStop Color="#CCFFFFFF" Offset="0.344"/>
        </RadialGradientBrush>
        <RadialGradientBrush x:Key="BackgroundBrush" Center="1.384,-0.285" GradientOrigin="1.382,-1.068" RadiusX="0.86500000000000021" RadiusY="0.752">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterX="1.384" CenterY="-0.285" ScaleX="1.356" ScaleY="1.356"/>
                    <SkewTransform AngleX="0" AngleY="0" CenterX="1.384" CenterY="-0.285"/>
                    <RotateTransform Angle="0" CenterX="1.384" CenterY="-0.285"/>
                    <TranslateTransform X="-0.887" Y="1.227"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="#26000000" Offset="0.37784422798545547"/>
            <GradientStop Color="#3FFFFFFF" Offset="0.0042314178001915306"/>
            <GradientStop Color="#26FFFFFF" Offset="0.68207530813795714"/>
        </RadialGradientBrush>
        <RadialGradientBrush x:Key="BackgroundStrokeBrush" GradientOrigin="0.485,-0.456">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.312" ScaleY="2.312"/>
                    <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                    <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
                    <TranslateTransform X="0.005" Y="0.53"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="#4C000000" Offset="0.516"/>
            <GradientStop Color="#4CFFFFFF" Offset="0.111"/>
            <GradientStop Color="#195C5C5C" Offset="1"/>
        </RadialGradientBrush>
        <Storyboard x:Key="ShowAll">
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ItemCanvas" Storyboard.TargetProperty="(UIElement.Visibility)" Duration="00:00:00.0010000">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ItemCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1.2" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="1" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ItemCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1.2" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="1" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ItemCanvas" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="ShowProfile">
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.Visibility)" Duration="00:00:00.0010000">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1.2" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="1" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1.2" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="1" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1" KeySpline="0.201,0.509,1,1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="CloseProfile">
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.Visibility)" Duration="00:00:00.0010000">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.2" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="0" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.2" KeySpline="0.201,0.509,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="1" KeySpline="0.5,0.884,1,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3670000" Value="0" KeySpline="0.5,0.494,0.508,0.894"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ProfileCanvas" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0" KeySpline="0.201,0.509,1,1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Style x:Key="PB_Style" TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:SurfaceButton}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Press">
                                
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Release">
                                
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" Background="{x:Null}">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform x:Name="tltf" X="0" Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Rectangle x:Name="Background" RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Fill="{StaticResource BackgroundBrush}" Stroke="{StaticResource BackgroundStrokeBrush}"></Rectangle>
                            <ContentPresenter Margin="8,8,8,8"/>
                            <Rectangle x:Name="Highlight" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="10" Margin="1,1,1,1" Fill="{StaticResource HighlightBrush}" Opacity="0.5"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="true">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Press}" x:Name="Press_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <BeginStoryboard Storyboard="{StaticResource Release}" x:Name="Release_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="SB_Style" TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:SurfaceButton}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Press">
                                
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Release">
                                
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid x:Name="grid" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" Background="{x:Null}">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform x:Name="tltf" X="0" Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            
                            <Rectangle x:Name="Background" RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Fill="{StaticResource BackgroundBrush}" Stroke="{StaticResource BackgroundStrokeBrush}"/>
                            <ContentPresenter Margin="8,8,8,8"/>
                            <Rectangle x:Name="Highlight" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="1" Margin="1,1,1,1" Fill="{StaticResource HighlightBrush}" Opacity="1"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="true">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Press}" x:Name="Press_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <BeginStoryboard Storyboard="{StaticResource Release}" x:Name="Release_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="Profile_Style" TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:SurfaceButton}">
                        <ControlTemplate.Resources>
                            <Storyboard x:Key="Press">

                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="2" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Key="Release">

                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tltf" Storyboard.TargetProperty="Y">
                                    <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0" KeySpline="0.598,0.104,0.409,0.904"></SplineDoubleKeyFrame>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </ControlTemplate.Resources>
                        <Grid Height="Auto" Width="275"  Opacity="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform x:Name="tltf" X="0" 
                                                                      Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Rectangle x:Name="Background" 
                                       RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Fill="{StaticResource 
                                       BackgroundBrush}" Stroke="{StaticResource 
                                       BackgroundStrokeBrush}"></Rectangle>
                            
                            <Rectangle x:Name="Highlight" 
                                       RenderTransformOrigin="0.5,0.5" Panel.ZIndex="1" Margin="1,1,1,1" 
                                       Fill="{StaticResource HighlightBrush}" Opacity="0.8"/>
                            <StackPanel Grid.Row="0" Background="#ce66a7" Orientation="Horizontal" Opacity="1">
                                <Image Height="120" Width="90" Source="{Binding ProfilePic}"></Image>
                                <StackPanel VerticalAlignment="Stretch" MaxHeight="120" Orientation="Vertical">
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                        <Label FontSize="22" HorizontalAlignment="Right" Content="{Binding FirstName}"/>
                                        <Label FontSize="22" HorizontalAlignment="Right" Content="{Binding LastName}"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock  FontSize="12" FontStretch="UltraCondensed" Foreground="White" HorizontalAlignment="Right"  Text="{Binding Department}"/>
                                        <TextBlock  FontSize="12" FontStretch="UltraCondensed" Foreground="White" HorizontalAlignment="Right" Text="{Binding School}"/>
                                        <TextBlock  FontSize="12" FontStretch="UltraCondensed" Foreground="White" HorizontalAlignment="Right" Text="{Binding Email}"/>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                            <Label Grid.Row="1" Opacity="1" Background="White" Foreground="Black" FontStretch="UltraCondensed" Content="{Binding Profile}" FontSize="13" ></Label>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsPressed" Value="true">
                                <Trigger.EnterActions>
                                    <BeginStoryboard Storyboard="{StaticResource Press}" x:Name="Press_BeginStoryboard"/>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <BeginStoryboard Storyboard="{StaticResource Release}" x:Name="Release_BeginStoryboard"/>
                                </Trigger.ExitActions>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="Job_Style" TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:SurfaceButton}">
                        <Grid Height="Auto" Width="275"  Opacity="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform x:Name="tltf" X="0" 
                                                                      Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Rectangle x:Name="Background" 
                                       RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Fill="{StaticResource 
                                       BackgroundBrush}" Stroke="{StaticResource 
                                       BackgroundStrokeBrush}"></Rectangle>
                            <ContentPresenter Margin="8,8,8,8"/>
                            <Rectangle x:Name="Highlight" 
                                       RenderTransformOrigin="0.5,0.5" Panel.ZIndex="1" Margin="1,1,1,1" 
                                       Fill="{StaticResource HighlightBrush}" Opacity="0.8"/>
                            <StackPanel Grid.Row="0" Background="#E23B33" Orientation="Horizontal" Opacity="1">
                                <Image Width="100" Source="Items\job.png"></Image>
                                <Label FontSize="20" VerticalAlignment="Center" Content="Job Description"></Label>
                            </StackPanel>
                            <Label Grid.Row="1" Opacity="1" Background="White" Foreground="Black" FontStretch="UltraCondensed" Content="{Binding Memo}" FontSize="13" ></Label>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="Itinerary_Style" TargetType="{x:Type s:SurfaceButton}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type s:SurfaceButton}">
                        <Grid Height="Auto" Width="275"  Opacity="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform x:Name="tltf" X="0" 
                                                                      Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Rectangle x:Name="Background" 
                                       RenderTransformOrigin="0.5,0.5" StrokeThickness="1" Fill="{StaticResource 
                                       BackgroundBrush}" Stroke="{StaticResource 
                                       BackgroundStrokeBrush}"></Rectangle>
                            <ContentPresenter Margin="8,8,8,8"/>
                            <Rectangle x:Name="Highlight" 
                                       RenderTransformOrigin="0.5,0.5" Panel.ZIndex="1" Margin="1,1,1,1" 
                                       Fill="{StaticResource HighlightBrush}" Opacity="0.8"/>
                            <StackPanel Grid.Row="0" Background="#1EC4F4" Orientation="Horizontal" Opacity="1">
                                <Image Width="100" Source="Items\itinerary.png"></Image>
                                <Label FontSize="20" VerticalAlignment="Center" Content="Itinerary"></Label>
                            </StackPanel>
                            <ListView Grid.Row="1">
                                <ListView.View>
                                    <GridView AllowsColumnReorder="true"
                                              ColumnHeaderToolTip="Employee Information">

                                        <GridViewColumn DisplayMemberBinding=
                                                        "{Binding Path=interview[0].FirstName}" 
                                                        Header="First Name" Width="100"/>

                                        <GridViewColumn DisplayMemberBinding=
                                                        "{Binding Path=interview[0].LastName}" 
                                                        Header="Last Name" Width="100"/>
                                        
                                        <GridViewColumn DisplayMemberBinding=
                                                        "{Binding Path=interview[0].StartTime}" 
                                                        Header="Interview Time" Width="100"/>
                                    </GridView>
                                </ListView.View>
                            </ListView>
                            
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
    </s:TagVisualization.Resources>
    <s:TagVisualization.Triggers>
        <EventTrigger RoutedEvent="CitiSurface:IdTagVisualization.ShowMenu">
            <BeginStoryboard Storyboard="{StaticResource ShowAll}" />
        </EventTrigger>
    </s:TagVisualization.Triggers>
    
    <Grid Height="Auto" Width="Auto" >


        


        <s:ScatterView Name="myTagFiles" Height="768" Width="1024">
            
        </s:ScatterView>
        
        
        <Canvas Height="250"
                Width="250"
                x:Name="ItemCanvas"
                Visibility="Collapsed"
                Opacity="0"
                RenderTransformOrigin="0.5,0.5"
                RenderTransform="{StaticResource TransformGroupTransform}" >
            
        </Canvas>
        
        <Canvas x:Name="ProfileCanvas"
                Height="200"
                Width="200"
                Visibility="Collapsed"
                Opacity="0"
                RenderTransformOrigin="0.5,0.5"
                RenderTransform="{StaticResource TransformGroupTransform2}"
                >
            
        </Canvas>
        
    </Grid>
    
    
    
</s:TagVisualization>
